[1,2,3]+[4,5,6]
# Out[1]: [1, 2, 3, 4, 5, 6]

'Hello,'+'world!'
Out[2]: 'Hello,world!'

[1,2,3]+'world!'
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[3], line 1
----> 1 [1,2,3]+'world!'

TypeError: can only concatenate list (not "str") to list
# 类型不一样
[1,2,3]+(4,5,6)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[4], line 1
----> 1 [1,2,3]+(4,5,6)

TypeError: can only concatenate list (not "tuple") to list
# 类型不一样
(1,2,3)+(4,5,6)
Out[5]: (1, 2, 3, 4, 5, 6)

(1,2,3)+["4","5","6"]
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[6], line 1
----> 1 (1,2,3)+["4","5","6"]
# 类型不一样
TypeError: can only concatenate tuple (not "list") to tuple

[1,2,3]+["4","5","6"]
Out[7]: [1, 2, 3, '4', '5', '6']